Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(TaskProcessing): Catch JSON encode errors in Manager#setTaskResult #46780

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marcelklehr
Copy link
Member

Checklist

Copy link
Member

@bigcat88 bigcat88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@marcelklehr marcelklehr force-pushed the fix/taskprocessing-better-errors branch from 99b59da to 714e495 Compare July 26, 2024 11:47
@marcelklehr marcelklehr force-pushed the fix/taskprocessing-better-errors branch from 714e495 to da34d4c Compare July 26, 2024 12:00
@@ -865,7 +865,7 @@
$task->setEndedAt(time());
$error = 'The task was processed successfully but the provider\'s output doesn\'t pass validation against the task type\'s outputShape spec and/or the provider\'s own optionalOutputShape spec';
$task->setErrorMessage($error);
$this->logger->error($error, ['exception' => $e]);
$this->logger->error($error . ' Output was: ' . var_export($result, true), ['exception' => $e]);

Check failure

Code scanning / Psalm

TaintedHtml Error

Detected tainted HTML
@skjnldsv skjnldsv marked this pull request as draft November 15, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants